package com.banciyuan.bcywebview.utils.anim;

import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.view.View;
import android.view.animation.AccelerateInterpolator;

/**
 * Created by squall on 2017/3/15.
 */

public class AddCommentAnimation {

    public static void setAnimation(View view) {
        AnimatorSet scaleUp = new AnimatorSet();

        ValueAnimator scaleanimX = ObjectAnimator.ofFloat(view, "scaleX", 1f).setDuration(200);
        scaleanimX.setInterpolator(new AccelerateInterpolator(200));
        ValueAnimator scaleanimY = ObjectAnimator.ofFloat(view, "scaleY", 1f).setDuration(200);
        scaleanimY.setInterpolator(new AccelerateInterpolator(200));

        scaleUp.play(scaleanimX).with(scaleanimY);
        scaleUp.start();
    }
}
